<extend name="Index/index"/>

<block name="register">
    <div class="header-mid">
        <div class="header-mid-wrap">
            <a href="#" >
                <img  id="s1111-logo"src="__PUBLIC__/Home/images/1111_220x90.gif"  alt="该链接已失效">
            </a>
            <div class="search-content">
                <div class="top_nav_search">
                    <div class="search-inner-box">
                        <div id="select-box-1"class="select-box">
                            <span class="selected">搜商品</span>
                        </div>
                        <form action="{{:U('Search/index')}}" method="get" id="top_nav_form">
                            <input data-tel="search_book" name="q1" class="ts_txt fl" data-def="睡衣女冬" value="" autocomplete="off" def-v="韩版可爱秋冬季睡衣套装" type="text">
                            <input value="搜  索" class="ts_btn" type="submit">
                            <!--<input name="t" value="bao" id="select_type" type="hidden">-->
                            <!--<input name="ptp" value="" type="hidden">-->
                        </form>

                    </div>
                    <!--<div class="ts_hotwords">-->
                        <!--<a href="#" class="ts_hotword">毛呢外套</a>-->
                        <!--<a href="#" class="ts_hotword">短靴</a>-->
                        <!--<a href="#" class="ts_hotword">毛衣</a>-->
                        <!--<a href="#" class="ts_hotword">男士外套</a>-->
                        <!--<a href="#" class="ts_hotword">卫衣</a>-->
                        <!--<a href="#" class="ts_hotword">睡衣</a>-->
                        <!--<a href="#" class="ts_hotword">打底裤</a>-->
                        <!--<a href="#" class="ts_hotword">秋冬套装</a>-->
                        <!--<a href="#" class="ts_hotword">连衣裙</a>-->
                    <!--</div>-->
                </div>
            </div>
            <div class="header-mid-qrcode">
                <img src="__PUBLIC__/Home/images/qrcode.png" alt="该链接已失效">
            </div>
        </div>
    </div>
    <div class="container mt50" style="margin-top: 20px;border: 0;">
        <div class="row mt20">
            <ul class="nav nav-tabs ">
                <foreach name="cate" item="value">
                    <eq name="value.pid" value="0">
                        <eq name="value.name" value="$topCateName">
                            <li role="presentation" class="active"><a href="{{:U('Index/categoryDetails',array('id'=>$value['id']))}}"  style="font-size: 20px">{{$value.name}}</a></li>
                        <else/>
                            <li role="presentation"><a href="{{:U('Index/categoryDetails',array('id'=>$value['id']))}}"   style="font-size: 15px">{{$value.name}}</a></li>
                        </eq>
                    </eq>
                </foreach>

            </ul>
            <br>
            <if condition="!empty($cateList)">
                <ul class="nav nav-tabs">
                    <li role="presentation" class="disabled"><a href="#" style="font-size: 20px">子分类:</a></li>
                    <foreach name="cateList" item="item">
                        <eq name="item.name" value="$name">
                            <li role="presentation" class="active"><a href="{{:U('Index/categoryDetails',array('id'=>$item['id']))}}"   style="font-size: 15px">{{$item.name}}</a></li>
                        <else/>
                            <li role="presentation"><a href="{{:U('Index/categoryDetails',array('id'=>$item['id']))}}"   style="font-size: 15px">{{$item.name}}</a></li>
                        </eq>

                    </foreach>
                </ul>

            </if>
            <br><br>
            <span style="color: #000;font-size: 30px;font-weight: bold">{{$name}}</span>


        </div><!--row end-->
        <div class="row mt20">
            <foreach name="goodsList" item="val">
                <foreach name="val" item="value">
                    <div class="col-sm-6 col-md-3">
                    <div class="thumbnail">
                        <a href="{{:U('Index/goodsDetails',array('id'=>$value['id']))}}"><img src="{{:get_img_url('__ROOT__/Uploads/GoodsImg/',$value['img'],350)}}"></a>
                        <div class="caption">
                            <a href="{{:U('Index/goodsDetails',array('id'=>$value['id']))}}"><h3>{{:subtext($value['name'],15)}}</h3></a>

                            <h2 class="text-danger">
                                <span class="glyphicon glyphicon-jpy h2"></span>&nbsp;{{$value.price}}</h2>
                            <!--<br>-->
                            <!--<p><a href="#" class="btn btn-danger" role="button">立即购买</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" class="btn btn-primary" role="button">加入购物车</a></p>-->
                        </div>
                    </div>
                </div>
                </foreach>
            </foreach>
        </div>
    </div><!--container end-->

    <script src="__PUBLIC__/Home/js/home.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/home.css">
</block>